home *** CD-ROM | disk | FTP | other *** search
- Path: news.sprintlink.net!datalytics!usenet
- From: Rob Stewart <stew@datalytics.com>
- Newsgroups: comp.lang.c++
- Subject: Re: Is this a memory leak?
- Date: Wed, 10 Apr 1996 16:42:44 -0400
- Organization: Datalytics, Inc
- Message-ID: <316C1D44.3815@datalytics.com>
- References: <4jv214$gv7@insosf1.netins.net> <4k114a$m5d@linet06.li.net> <4k30g4$sdo@werple.net.au> <316ABE12.1915@delta.com>
- NNTP-Posting-Host: 204.62.224.71
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Sean Palmer wrote:
- >
- > > Also, many prominent people involved in C++, among them Bjarne Stroustrup,
- > > the language's designer, recommend using 0, not NULL, as a null pointer.
- > > One of the arguments against NULL is that it is not as portable as 0; some
- > > people might spell it 'Null', or 'null'.
- >
- > Sounds like an argument against case sensitivity to me....
-
- The problem is that NULL can, quite legally, be defined in many
- ways. The two standard ways provided by ANSI C are (void*)0 and
- 0 (see comp.lang.c FAQ 5.4). NULL is not portable because of
- the various (even just these two) definitions, not because of
- case sensitivity. Using zero works all the time; it's portable.
-
- --
- Robert Stewart | My opinions are usually my own.
- Datalytics, Inc. | stew@datalytics.com
-